// 1.引入express包
const express = require("express");
// 2.使用Router来创建路由
const router = express.Router();
// 3.引入控制器模块
const controller = require("../controllerMob/ctrlResult");

// 配置路由
// 跳转页面
router.get("/", controller.index);
router.get("/join/advan", controller.advan);
router.get("/join/flow", controller.flow);
router.get("/gie", controller.gie);
router.get("/about/intro", controller.intro);
router.get("/mejoin", controller.mejoin);
router.get("/join/policy", controller.scheme);
router.get("/join/trem", controller.term);
router.get("/news/dynamic", controller.dynamic);
router.get("/news/infor", controller.infor);
router.get("/org/oper", controller.oper);


// 问题切换
router.get("/issue_tab", controller.issue_tab);

// 新闻数据渲染
router.get("/news_show", controller.news_show);

// 加盟指南渲染
router.get("/gie_show", controller.gie_show);

// 文章页面
router.get("/article/:id", controller.article);
// 暴露路由
module.exports = router;
